package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Admin entity. @author MyEclipse Persistence Tools
 */

public class Admin implements java.io.Serializable {

	// Fields

	private Long id;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String department;
	private String email;
	private Boolean isEnabled;
	private Boolean isLocked;
	private Timestamp lockedDate;
	private Timestamp loginDate;
	private Integer loginFailureCount;
	private String loginIp;
	private String name;
	private String password;
	private String username;
	private Set orders = new HashSet(0);
	private Set adminRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public Admin() {
	}

	/** minimal constructor */
	public Admin(Timestamp createDate, Timestamp modifyDate, String email,
			Boolean isEnabled, Boolean isLocked, Integer loginFailureCount,
			String password, String username) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.email = email;
		this.isEnabled = isEnabled;
		this.isLocked = isLocked;
		this.loginFailureCount = loginFailureCount;
		this.password = password;
		this.username = username;
	}

	/** full constructor */
	public Admin(Timestamp createDate, Timestamp modifyDate, String department,
			String email, Boolean isEnabled, Boolean isLocked,
			Timestamp lockedDate, Timestamp loginDate,
			Integer loginFailureCount, String loginIp, String name,
			String password, String username, Set orders, Set adminRoles) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.department = department;
		this.email = email;
		this.isEnabled = isEnabled;
		this.isLocked = isLocked;
		this.lockedDate = lockedDate;
		this.loginDate = loginDate;
		this.loginFailureCount = loginFailureCount;
		this.loginIp = loginIp;
		this.name = name;
		this.password = password;
		this.username = username;
		this.orders = orders;
		this.adminRoles = adminRoles;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Boolean getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	public Boolean getIsLocked() {
		return this.isLocked;
	}

	public void setIsLocked(Boolean isLocked) {
		this.isLocked = isLocked;
	}

	public Timestamp getLockedDate() {
		return this.lockedDate;
	}

	public void setLockedDate(Timestamp lockedDate) {
		this.lockedDate = lockedDate;
	}

	public Timestamp getLoginDate() {
		return this.loginDate;
	}

	public void setLoginDate(Timestamp loginDate) {
		this.loginDate = loginDate;
	}

	public Integer getLoginFailureCount() {
		return this.loginFailureCount;
	}

	public void setLoginFailureCount(Integer loginFailureCount) {
		this.loginFailureCount = loginFailureCount;
	}

	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

	public Set getAdminRoles() {
		return this.adminRoles;
	}

	public void setAdminRoles(Set adminRoles) {
		this.adminRoles = adminRoles;
	}

}